package com.lizhi.yun.db.sfrobot.entity;

import com.lizhi.mybatis.boot.Description;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 地理信息表
 */
@Data
@ToString
//@Entity
//@Table(name = "his_center_geo")
@Description("地理数据")
public class Geo extends AbstractHisEntity {
    @Id
    @Column(length = 30)
    @Description("lid")
    public String lid;

    @Description("记录id")
    public Long id;
    /**
     * 目标对象id
     */
    @Column
    @Description("目标对象id")
    public Long targetId;

    @Column
    @Description("目标对象类型")
    public int targetType;
    /**
     * 目标对象编号，实体名称
     */
    @Column(length = 100)
    @Description("目标对象编号")
    public String targetCode;
    /**
     * 目标名称
     */
    @Column(length = 50)
    @Description("目标对象名称")
    public String targetText;
    /**
     * 经度
     */
    @Column
    @Description("经度")
    public float longitude;
    /**
     * 纬度
     */
    @Column
    @Description("纬度")
    public float latitude;

    /**
     * 国家
     */
    @Column(length = 50)
    @Description("所在国家")
    public String country;
    /**
     * 省
     */
    @Column(length = 50)
    @Description("所在省份")
    public String province;
    /**
     * 市
     */
    @Column(length = 50)
    @Description("所在城市")
    public String city;
    /**
     * 县
     */
    @Column(length = 50)
    @Description("所在县（区）")
    public String county;

    /**
     * 详细地址
     */
    @Column(length = 500)
    @Description("详细地址")
    public String address;

    @Column(length = 20)
    @Description("创建时间")
    public String createTime;

    /*云管需要的数据*/
    @ApiModelProperty(value = "医院ID")
    private String hospitalId;

    @ApiModelProperty(value = "系统ID")
    private String hospitalSystemId;

}
